import axios from 'axios';

axios.defaults.baseURL = 'http://1.15.222.28:4002';

// 请求拦截器
axios.interceptors.request.use(req => {
    let Token = localStorage.getItem("token");
    
    if (Token) {
        let token=Token.replace(/\"/g, "");
        req.headers.Authorization = token;
    }
    return req;
})

export default axios